package com.dq.repository.goods;

import com.dq.domain.goods.GoodSpecification;
import com.dq.domain.goods.Goods;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author liuhui
 * @date 2019/9/24 0024 18:19:43
 */
@Repository
public interface GoodsSpecificationRepository extends JpaRepository<GoodSpecification,Long> {
    List<GoodSpecification> findAllByGoodsAndDeletedFalseOrderBySpecificationSortNoAsc(Goods goods);
}
